<template>
  <div>
    首页
    <n-button type="primary">naive-ui</n-button>

  </div>
</template>
<script lang="ts" setup>

import { NButton } from "naive-ui";
import { onMounted } from "vue";
import {getUser} from '/@/api/user';

onMounted(()=>{
  getUser().then(res=>{
    console.log(res.data);
    
  })
})

</script>
